// vite.config.js
import { defineConfig } from "vite";
import tailwindcss from 'tailwindcss';
import uni from "@dcloudio/vite-plugin-uni";
import uniTailwind from '@uni-helper/vite-plugin-uni-tailwind';

export default defineConfig({
  css: {
    postcss: {
      plugins: [
        tailwindcss(),
      ],
    },
    // 解决新版本sass控制台警告的问题
    preprocessorOptions: {
      scss: {
        silenceDeprecations: ['legacy-js-api', 'color-functions'],
      },
    },
  },
  plugins: [uni(), uniTailwind()],
  resolve: {
    alias: {
      '@':"./src"
    }
  },
  transpileDependencies: ['@climblee/uv-ui']
});



